/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lu.med.praxiswahl.wahlumed.dao.beans.daointerface;

/**
*
* @author Patrick kendzo
* Email: pkendzo@msn.com
*/

import java.util.List;

import lu.med.praxiswahl.wahlumed.model.beans.OrdonanceTBL;

/**
 *
 * @author pkendzo
 */
public interface OrdonanceDAOInt {

	public static final int	RET_Ordonancen_NOT_FOUND	= 1;
	public static final int	RET_OPERATION_DONE_PROPERLY	= 0;
	public static final int	RET_OPERATION_FAILED		= 2;
	
	public void persist(OrdonanceTBL todo);
    public void delete(Long id);
    public void update(OrdonanceTBL todo);
	public List<OrdonanceTBL> findCustomerOrdonancenBy_Typ_AND_Customer(String typ, String matricule);
	public OrdonanceTBL retrieveOrdonanceTemplateByID(Long id);
	
	public Long findDatabaseSubPrimaryKeyIndex();
}
